package com.zito.bean;

import javax.validation.groups.Default;


import com.downlove.validation.notnull.NotNull;
import com.downlove.validation.strlength.CheckLength;
import com.zito.pojo.ElectronicPOJO;

@SuppressWarnings("serial")
public class Electronic extends ElectronicPOJO {
	
	private Long id;
	@NotNull(message = "请填写标题", groups = { Default.class })
	@CheckLength(message = "文章标题字符长度不能小于4个字符，不能大于200个字符，一个中文为2个字符", min = 4, max = 200, groups = { Default.class })
	private String title;
	@NotNull(message = "请填写备注说明", groups = { Default.class })
	private String content;
	private String postdate;
	private int view = 0;
	private int orders = 0;
	private int topic = 0;
	private Long authorid;
	private String author;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getPostdate() {
		return postdate;
	}
	public void setPostdate(String postdate) {
		this.postdate = postdate;
	}
	public int getView() {
		return view;
	}
	public void setView(int view) {
		this.view = view;
	}
	public int getOrders() {
		return orders;
	}
	public void setOrders(int orders) {
		this.orders = orders;
	}
	public int getTopic() {
		return topic;
	}
	public void setTopic(int topic) {
		this.topic = topic;
	}
	public Long getAuthorid() {
		return authorid;
	}
	public void setAuthorid(Long authorid) {
		this.authorid = authorid;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
}
